// 菜单管理页面相关api
import request from '@/utils/request'

// 获取菜单
// /admin/acl/permission  get
export const reqGetPermission = () => request({ url: `/admin/acl/permission`, method: 'get' })

// 新增菜单
// /admin/acl/permission/save  post
export const reqAddPermission = (permission) => request({ url: `/admin/acl/permission/save`, method: 'post', data: permission })

// 修改菜单
// /admin/acl/permission/update  put
export const reqUpdatePermission = (permission) => request({ url: `/admin/acl/permission/update`, method: 'put', data: permission })

// 递归删除菜单
// /admin/acl/permission/remove/{id}  delete
export const reqDeletePermission = (id) => request({ url: `/admin/acl/permission/remove/${id}`, method: 'delete' })

